setRemUnit();
window.addEventListener('resize', setRemUnit);
function setRemUnit() {
  var ratio = 18.75;
  var docEl = document.documentElement;
  var viewWith = docEl.getBoundingClientRect().width || window.innerWidth;
  docEl.style.fontSize = viewWith / ratio + 'px';
  console.log(viewWith);
};

